package com.sunnada.edu.system.sysLog.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sunnada.edu.system.pub.dao.BaseDaoImpl;

@Repository
public class SysLogDaoImpl extends BaseDaoImpl implements SysLogDao {

	@Override
	public int getSyslogCots(HashMap<String, String> params) {
		List list = selectList("syslog_sqlmap.getSyslogCots", params);
		if (list != null && list.size() > 0) {
			String cot = ((Map) list.get(0)).get("cot") + "";
			return Integer.valueOf(cot);
		}
		return 0;
	}

	@Override
	public List<?> findSyslogs(HashMap<String, String> params) {
		return selectList("syslog_sqlmap.findSyslogs", params);
	}

}
